Resolve Task (Async)
Resolves a pending task and processes it in the background. Returns immediately with the assistant message ID. Poll GET /chats/:chatId/messages/:messageId and check `finishReason` to detect completion.
Usage
import { v0 } from 'v0-sdk'const result = await v0.messages.resolveAsync({ chatId: 'chat_abc123', task: 'confirmed-steps',})console.log(result)API Signature
Request
Path Parameters
The unique identifier of the chat.
Request Body
The task resolution data. The latest message in the active chat fork must be an assistant message blocked on the matching task type.
Overrides for the model behavior.
Model to use for the generation.
Enables image generations to generate up to 5 images per version.
Response
ID of the assistant message that will receive the response. Poll GET /chats/:chatId/messages/:messageId and check finishReason for completion.
Resolve Task
Resolves a pending task in a chat, continuing the conversation. The latest message in the active chat fork must be an assistant message currently blocked on a matching task (integration setup, plan approval, question answers, or permission grants). Blocks until the model response is complete and returns the resulting message.
Resolve Task (Streaming)
Resolves a pending task in a chat and returns a Server-Sent Events stream. Events include the initial assistant-message snapshot, content chunk deltas, final usage, and a closing message snapshot. The response is `text/event-stream`; each event is `data: <JSON>\n\n` where the JSON conforms to MessageStreamEvent.